if (has_default)
{
gtk_widget_grab_default (child);
- gtk_style_context_add_class (gtk_widget_get_style_context (child), "suggested-action");
+ gtk_style_context_add_class (gtk_widget_get_style_context (child), GTK_STYLE_CLASS_SUGGESTED_ACTION);
}
}
g_list_free (children);
if (has_default)
{
gtk_widget_grab_default (child);
- gtk_style_context_add_class (gtk_widget_get_style_context (child), "suggested-action");
+ gtk_style_context_add_class (gtk_widget_get_style_context (child), GTK_STYLE_CLASS_SUGGESTED_ACTION);
}
}
g_list_free (children);
{
gtk_widget_grab_default (widget);
if (dialog->priv->constructed && dialog->priv->use_header_bar == 1)
- gtk_style_context_add_class (gtk_widget_get_style_context (widget), "suggested-action");
+ gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
}
tmp_list = g_list_next (tmp_list);
*/
#define GTK_STYLE_CLASS_NEEDS_ATTENTION "needs-attention"
+/**
+ * GTK_STYLE_CLASS_SUGGESTED_ACTION:
+ *
+ * A CSS class used when an action (usually a button) is the
+ * primary suggested action in a specific context.
+ *
+ * Since: 3.12
+ */
+#define GTK_STYLE_CLASS_SUGGESTED_ACTION "suggested-action"
+
/* Predefined set of widget regions */
/**